Optimal. Leaf size=92 \[ -\frac{8 a^2 \cos ^3(c+d x)}{105 d (a \sin (c+d x)+a)^{3/2}}-\frac{2 \cos ^3(c+d x) \sqrt{a \sin (c+d x)+a}}{7 d}-\frac{2 a \cos ^3(c+d x)}{35 d \sqrt{a \sin (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18834, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {2856, 2674, 2673} \[ -\frac{8 a^2 \cos ^3(c+d x)}{105 d (a \sin (c+d x)+a)^{3/2}}-\frac{2 \cos ^3(c+d x) \sqrt{a \sin (c+d x)+a}}{7 d}-\frac{2 a \cos ^3(c+d x)}{35 d \sqrt{a \sin (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2856
Rule 2674
Rule 2673
Rubi steps
\begin{align*} \int \cos ^2(c+d x) \sin (c+d x) \sqrt{a+a \sin (c+d x)} \, dx &=-\frac{2 \cos ^3(c+d x) \sqrt{a+a \sin (c+d x)}}{7 d}+\frac{1}{7} \int \cos ^2(c+d x) \sqrt{a+a \sin (c+d x)} \, dx\\ &=-\frac{2 a \cos ^3(c+d x)}{35 d \sqrt{a+a \sin (c+d x)}}-\frac{2 \cos ^3(c+d x) \sqrt{a+a \sin (c+d x)}}{7 d}+\frac{1}{35} (4 a) \int \frac{\cos ^2(c+d x)}{\sqrt{a+a \sin (c+d x)}} \, dx\\ &=-\frac{8 a^2 \cos ^3(c+d x)}{105 d (a+a \sin (c+d x))^{3/2}}-\frac{2 a \cos ^3(c+d x)}{35 d \sqrt{a+a \sin (c+d x)}}-\frac{2 \cos ^3(c+d x) \sqrt{a+a \sin (c+d x)}}{7 d}\\ \end{align*}
Mathematica [A] time = 0.402999, size = 89, normalized size = 0.97 \[ -\frac{\sqrt{a (\sin (c+d x)+1)} \left (\cos \left (\frac{1}{2} (c+d x)\right )-\sin \left (\frac{1}{2} (c+d x)\right )\right )^3 (66 \sin (c+d x)-15 \cos (2 (c+d x))+59)}{105 d \left (\sin \left (\frac{1}{2} (c+d x)\right )+\cos \left (\frac{1}{2} (c+d x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.688, size = 65, normalized size = 0.7 \begin{align*} -{\frac{ \left ( 2+2\,\sin \left ( dx+c \right ) \right ) a \left ( \sin \left ( dx+c \right ) -1 \right ) ^{2} \left ( 15\, \left ( \sin \left ( dx+c \right ) \right ) ^{2}+33\,\sin \left ( dx+c \right ) +22 \right ) }{105\,d\cos \left ( dx+c \right ) }{\frac{1}{\sqrt{a+a\sin \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \sin \left (d x + c\right ) + a} \cos \left (d x + c\right )^{2} \sin \left (d x + c\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.63686, size = 302, normalized size = 3.28 \begin{align*} -\frac{2 \,{\left (15 \, \cos \left (d x + c\right )^{4} + 18 \, \cos \left (d x + c\right )^{3} - \cos \left (d x + c\right )^{2} +{\left (15 \, \cos \left (d x + c\right )^{3} - 3 \, \cos \left (d x + c\right )^{2} - 4 \, \cos \left (d x + c\right ) - 8\right )} \sin \left (d x + c\right ) + 4 \, \cos \left (d x + c\right ) + 8\right )} \sqrt{a \sin \left (d x + c\right ) + a}}{105 \,{\left (d \cos \left (d x + c\right ) + d \sin \left (d x + c\right ) + d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \left (\sin{\left (c + d x \right )} + 1\right )} \sin{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \sin \left (d x + c\right ) + a} \cos \left (d x + c\right )^{2} \sin \left (d x + c\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]